package cn.tedu.medicalappointmentsystemk.dao.persist.repository;

import cn.tedu.medicalappointmentsystemk.pojo.bo.ScheduleSelectAllBO;
import cn.tedu.medicalappointmentsystemk.pojo.bo.ScheduleSelectBO;
import cn.tedu.medicalappointmentsystemk.pojo.po.SchedulePO;
import com.github.pagehelper.Page;

import java.util.Date;
import java.util.List;

public interface ScheduleRepository {
    String selectDutyShift(Long doctorId, Date createDate);

    Integer insert(SchedulePO po);

    Page<ScheduleSelectBO> selectByDateList(List<Date> dateList);

    Page<ScheduleSelectAllBO> selectAll();

    Integer deleteById(Long id);

    Page<ScheduleSelectAllBO> searchLastMonth();

    Page<ScheduleSelectAllBO> searchLastWeek();

    Page<ScheduleSelectAllBO> searchToday();

    List<ScheduleSelectAllBO> selectByNickname(String nickname);
}
